import request from '../utils/request.js'

/**
 * 点击关注/取消关注
 */
export const changeFollowAPI = (user_id, follow_id, follow_flag) => request.post('/follow/changeFollow', {
    user_id,
    follow_id,
    follow_flag
})

/**
 * 判断当前访问的用户是否已经关注
 */
export const judgeFollowAPI = (user_id, visit_id) => request.get('/follow/judgeFollow', {
    user_id,
    visit_id
})

/**
 * 当前用户的关注/粉丝列表
 */
export const followListAPI = (user_id) => request.get('/follow/followList', {
    user_id
})